package com.dianqu.weather.core.common;

import java.io.IOException;
import java.util.Properties;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class PropertiesUtils {
	public static Properties getProperties(String resource) {
		logger.info("加载资源文件" + resource);
		Properties proper = new Properties();
		try {
			proper.load(PropertiesUtils.class.getClassLoader()
					.getResourceAsStream(resource));
		} catch (IOException e) {
			e.printStackTrace();
		}
		return proper;
	}

	private static final Logger logger = LoggerFactory
			.getLogger(PropertiesUtils.class);

}
